package hoang.android.app.ui.missatool;

import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.Spinner;
import android.widget.TextView;
import hoang.android.app.R;
import hoang.android.app.ui.BaseActivity;

public class PaymentActivity extends BaseActivity{

	TextView tv_amount;
	EditText et_cardnumber, et_cardhodle_number, et_zipcode, et_cw2;
	Spinner sp_payment_type, sp_expiration_month, sp_expiration_year;
	ImageView imgSubmit;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_payment);
		
		loadUI();
		listenUI();
	}
	
	@Override
	protected void loadUI() {
		super.loadUI();
		
		tv_amount = (TextView)findViewById(R.id.tv_amount);
		et_cardnumber = (EditText)findViewById(R.id.et_card_number);
		et_cardhodle_number = (EditText)findViewById(R.id.et_card_hoder_number);
		et_zipcode = (EditText)findViewById(R.id.et_zipcode);
		et_cw2 = (EditText)findViewById(R.id.et_cw2);
		
		sp_payment_type = (Spinner)findViewById(R.id.sp_payment_type);
		sp_expiration_month = (Spinner)findViewById(R.id.sp_expiration_month);
		sp_expiration_year = (Spinner)findViewById(R.id.sp_expiration_year);
		
		imgSubmit = (ImageView)findViewById(R.id.img_submit);
	}
	
	public void listenUI(){
		imgSubmit.setOnClickListener(this);
	}
	
	@Override
	public void onClick(View v) {
		super.onClick(v);
		
		switch (v.getId()) {
		case R.id.img_submit:
			
			break;

		default:
			break;
		}
	}
}
